<template>
	<view class="school_content">
		
		<rich-text :nodes="content"></rich-text>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:'',
				}
		},
		onLoad() {
			this.tocompanyinfo()
		},
		methods: {
			 tocompanyinfo(){
			 	
			 	//this.$http.requestfast('/api/follower/ld_shoukuan_user/edit', param, 1).then(res => {
			 	let _that =this
			 	this.$request.request("api/index/tocompanyinfo?token=fb847685c72c31f698e9581fc050debb",'',0,'get',false).then(res => {
			 		
			 		
			 		let res2w = res.data;
			 		
		
			 		
			 		if (typeof res2w == 'string') {     
			 		let str22 = res2w.replace(/\ufeff/g, "");//去除反斜杠
			 		res2w = JSON.parse(str22);//string转object
			 		}
			 		
			 		if (res2w.status == 1) {
			 		
			 		            _that.content=res2w.data.company_desc
			 		        
			 		        }else if(res2w.status==-2){
			 		
			 		          uni.showToast({
			 		            title: "" + res2w.msg,
			 		            icon: 'none',
			 		            duration: 3000,
			 		            success:function(){
			 		              
			 		            }
			 		          });
			 		          uni.removeStorageSync('token');
			 		          uni.removeStorageSync('isuser');
			 		
			 		          setTimeout(() => {
			 		            uni.redirectTo({
			 		              url: '../login/login',
			 		            })
			 		          }, 3000);
			 		
			 		        }else{
			 		            
			 		            uni.showToast({
			 		              title: "" + res2w.msg,
			 		              icon: 'none',
			 		              duration: 3000
			 		            });
			 		            
			 		        }
			 				
			 	})
			 	
			 },
		}
	}
</script>

<style>

	page {

	}
	.school_content{
		display: flex;
		flex-direction: column;
		padding:5px 5px; 
	}
	image{
		height:100px;
		width:100%;
		border:1px solid #cccccc;
		background-color: #cccccc;
	}
	 
 
</style>
